package com.youren.health.service;

import com.youren.health.entity.PageResult;
import com.youren.health.entity.QueryPageBean;
import com.youren.health.exception.HealthException;
import com.youren.health.pojo.CheckGroup;
import com.youren.health.pojo.CheckItem;

import java.util.List;

public interface CheckGroupService {
    /**
     * 通过条件查询分页结果
     * @param queryPageBean
     * @return
     */
    PageResult findByPage(QueryPageBean queryPageBean);

    void add(CheckGroup checkGroup, Integer[] checkItemIds);

    CheckGroup findById(Integer id);

    void update(CheckGroup checkGroup,Integer[] checkitemIds);

    void deleteById(Integer id) throws HealthException;

    List<Integer> findCheckItemIdList(Integer id);

    List<CheckGroup> findAll();

}
